﻿
using Autodesk.Windows;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cad.Infrastructure;
using System.Windows.Media.Imaging;
using Cad.Infrastructure.View;
using 弹框;
using System.Windows.Forms;

namespace 视图页面
{
    public class ProgramClass: CadBase
    {

        //[Autodesk.AutoCAD.Runtime.CommandMethod("ribb")]
        //public void RibbonDemo()
        //{
        //    RibbonControl ribbon = ComponentManager.Ribbon;
        //    RibbonTab tab = new RibbonTab();
        //    tab.Title = "我的界面";
        //    tab.Id = "Id";
        //    ribbon.Tabs.Add(tab);
        //    //默认选中
        //    tab.IsActive = true;



        //    RibbonPanelSource source = tab.AddPanel("绘图");
        //    //RibbonButton btn=new RibbonButton();
        //    //btn.Name = "直线";
        //    //btn.Text = "直线";
        //    //btn.ShowText = true;
        //    //btn.Image = new BitmapImage(new Uri(@"D:\Git\gz-demo\cad学习\基础\视图页面\Images\l1.png"));
        //    ////显示大图
        //    ////btn.LargeImage=
        //    ////btn.Size = RibbonItemSize.Large;
        //    //btn.ShowImage = true;
        //    ////垂直
        //    //btn.Orientation = System.Windows.Controls.Orientation.Vertical;
        //    //source.Items.Add(btn);
        //    source.Items.Add(new MyRibbonButton("直线", "直线"));
        //    source.Items.Add(new MyRibbonButton("圆弧", "圆弧"));
        //    source.Items.Add(new MyRibbonButton("扇形", "扇形"));

        //}


        [Autodesk.AutoCAD.Runtime.CommandMethod("demo")]
        public void Demo()
        {
            var f = new Form1();
            f.ShowDialog();
        }


    }
}
